CREATE PROCEDURE [dbo].[users_select_by_id]
    @userId int
AS 
SELECT
    [UserId],
    [Avatar],
    [Email],
    [Password],
    [Salt],
    [Login],
    [RegistrationDate],
    [Status],
    [LastUpdateDate]
FROM [dbo].[Users] 
WHERE
    Users.[UserId]=@userId
RETURN 0
